package testes;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;

import org.apache.commons.codec.binary.Base64;

import br.furb.model.ApplicationSession;


public class Testes {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		Properties prop = new Properties();
		prop.setProperty("userAdmin", "admin");
		prop.setProperty("passwordAdmin", new String(Base64.encodeBase64("admin@123".getBytes())));
		prop.setProperty("dataBase", "data.bin");
		
		File file = new File(ApplicationSession.getInstance().getAbsolutePath() + "\\config\\config.properties");
		FileOutputStream f = new FileOutputStream(file);
		prop.store(f, null);
		f.close();
	}
}